import {createContext} from 'react'
//我自己创建了一个数据类型
interface defaultValue {//声明类型
    money: string,
    addMoney: (m: string) => void,
}
let dv = {
    money: "一个亿",
    addMoney(m: string) { },
}
export let MoneyContext = createContext<defaultValue>(dv);